package Program.Information;

public class Recharge {
    //id
    private int id;
    //用户id
    private int userID;
    //充值时间
    private String startTime;
    //充值金额
    private double amount;
    //是否充值成功
    private String state;

    public Recharge() {
    }

    public Recharge(int id, int userID, String startTime, double amount, String state) {
        this.id = id;
        this.userID = userID;
        this.startTime = startTime;
        this.amount = amount;
        this.state = state;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getUserID() {
        return userID;
    }

    public void setUserID(int userID) {
        this.userID = userID;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Recharge{" +
                "id=" + id +
                ", userID=" + userID +
                ", startTime='" + startTime + '\'' +
                ", amount=" + amount +
                ", state='" + state + '\'' +
                '}';
    }
}
